# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-backport_collections
pkgver=0.1
pkgrel=2
pkgdesc="Backport of Python 2.7's collections module."
arch=('any')
url='https://pypi.python.org/pypi/backport_collections/'
license=('Python')
depends=('python2')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/d0/dd/d833f666d54a3ec27a8ffd85e2c05838585550de3b38addd8a11d8528734/backport_collections-$pkgver.tar.gz")
sha512sums=('6c69788776847557ac8b2e93f376c1c03a89ad9a37b109f514ef2e1c3ed58046b3be400893986a6c409f1bb8dd40724ae5c3997bd52d276af6766e5f4e5767f1')

build() {
  cd "backport_collections-$pkgver"

  python2 setup.py build
}

package() {
  cd "backport_collections-$pkgver"

  python2 setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 \
    --skip-build
}

